package cz.semjob.linguistic.reader.attribute.czech;

import org.springframework.stereotype.Component;

import cz.semjob.linguistic.reader.attribute.ACaseAttribute;

@Component
public class CzechCaseAttribute extends ACaseAttribute {

	public static final String NOMINATIVE = "NOMINATIVE";
	public static final String GENITIVE = "GENITIVE";
	public static final String DATIVE = "DATIVE";
	public static final String ACCUSATIVE = "ACCUSATIVE";
	public static final String VOCATIVE = "VOCATIVE";
	public static final String LOCATIVE = "LOCATIVE";
	public static final String INSTRUMENTAL = "INSTRUMENTAL";
	public static final String ANY = "ANY";
	public static final String NONE = "NONE";

	public static final String[] values = new String[] { NOMINATIVE, GENITIVE,
			DATIVE, ACCUSATIVE, VOCATIVE, LOCATIVE, INSTRUMENTAL, ANY, NONE };

	public String[] getValues() {
		return values;
	}

	public String getValue(String input) {
		if (input.equals("1")) {
			return NOMINATIVE;
		} else if (input.equals("2")) {
			return GENITIVE;
		} else if (input.equals("3")) {
			return DATIVE;
		} else if (input.equals("4")) {
			return ACCUSATIVE;
		} else if (input.equals("5")) {
			return VOCATIVE;
		} else if (input.equals("6")) {
			return LOCATIVE;
		} else if (input.equals("7")) {
			return INSTRUMENTAL;
		} else if (input.equals("X")) {
			return ANY;
		} else if (input.equals("-")){
			return NONE;
		} else {
			return null;
		}
	}

}
